import day0610 as m1
import day0609 as m2
if __name__ == '__main__':
    x=int(input('请输入x:'))
    if m1.is_prime(x) and m2.isPalindrome(x):
        print('是回文质数')
    else:
        print('不是回文质数')